<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>学校在线考试系统后台管理</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.css" rel="stylesheet">
	<link href="css/bootstrap-table.css" rel="stylesheet">
	<link href="css/bootstrap-select.min.css" rel="stylesheet">
	<link href="css/mystyle.css" rel="stylesheet">
	<link href="css/test.css">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link href="css/font-awesome.min.css" rel="stylesheet">
  </head>
  <body>
	<nav class="navbar navbar-default" role="navigation" style="margin-bottom:0;">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
						data-target="#example-navbar-collapse">
					<span class="sr-only">切换导航</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<div class="navbar-brand">学校在线考试系统后台管理</div>
			</div>
			<div class="collapse navbar-collapse" id="example-navbar-collapse">
				<ul class="nav navbar-nav navbar-right" >
					<li class="navbar-text">管理员:001</li>
					<li><a href="#"><span class="fa fa-sign-out"></span>注销</a></li>
				</ul>
			</div>
	</nav>
	
	<div class="container-fluid" style="padding:0;">
		<div class="col-sm-2" style="padding:0;">
			<ul class="list-group">
				<a class="list-group-item" style="border-radius:0px;" href="#index" data-toggle="tab">学生信息管理</a>
				<a class="list-group-item" href="#index" data-toggle="tab">教师信息管理</a>
				<a class="list-group-item" data-toggle="collapse" data-parent="#accordion" 
					href="#collapseThree">
					组织管理<span class="fa fa-angle-right" style="float:right;font-size:25px;"></span>
				</a>
				<div id="collapseThree" class="panel-collapse collapse">
					<ul class="list-group" style="margin-bottom:0;">
						<a href="mgr_dept.jsp" class="list-group-item" style="padding-left:40px;border-radius:0px;" >院系</a>
						<a href="#" class="list-group-item" style="padding-left:40px;">班级</a>
						<a href="mgr_spec.jsp" class="list-group-item" style="padding-left:40px;">专业</a>
					</ul>
				</div>
				<a class="list-group-item" data-toggle="collapse" data-parent="#accordion" 
					href="#collapseOne">
					课程管理<span class="fa fa-angle-right" style="float:right;font-size:25px;"></span>
				</a>
				<div id="collapseOne" class="panel-collapse collapse in">
					<ul class="list-group" style="margin-bottom:0;">
						<a href="mgr_subject.jsp" class="list-group-item" style="padding-left:40px;border-radius:0px;" >科目</a>
						<a href="mgr_course.jsp" class="list-group-item active" style="padding-left:40px;">课程</a>
					</ul>
				</div>
			</ul>
		</div>
		<div class="col-sm-10">
		
			<!-- 面包屑导航 -->
			<ol class="breadcrumb">
			    <li><a href="tch_index.jsp">首页</a></li>
			    <li class="active">课程管理</li>
			</ol>
			
			<div id="myTabContent" class="tab-content">
				<div class="tab-pane fade" id="ios">
					<p>iOS 是一个由苹果公司开发和发布的手机操作系统。最初是于 2007 年首次发布 iPhone、iPod Touch 和 Apple 
						TV。iOS 派生自 OS X，它们共享 Darwin 基础。OS X 操作系统是用在苹果电脑上，iOS 是苹果的移动版本。</p>
				</div>
			</div>
		
			<div class="row" style="padding-left:30px;padding-right:15px;">
				<div id="toolbar" class="btn-group">
		            <button class="btn btn-success" data-toggle="modal" data-target="#myModal" style="">
						<span class="fa fa-plus"></span>&nbsp;新增
					</button>
		        </div>
				
				<!-- 模态框（Modal） -->
				<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
								<h4 class="modal-title" id="myModalLabel">新增课程信息</h4>
							</div>
							<div class="modal-body">
								<form id="form1" class="form-horizontal" role="form" action="course/saveOrUpdate" method="post">
									<div class="form-group">
										<label for="name" class="col-sm-2 control-label">编号</label>
										<div class="col-sm-10">
											<input type="text" class="form-control" name="num" required="required" placeholder="编号">
										</div>
									</div>
									<div class="form-group">
										<label for="name" class="col-sm-2 control-label">名称</label>
										<div class="col-sm-10">
											<input class="form-control" name="name" required="required" rows="3" placeholder="名称">
										</div>
									</div>
									<div class="form-group">
										<label for="name" class="col-sm-2 control-label">所属科目</label>
										<div class="col-sm-10">
											
											 <select required name="subjectId" id="slpk" class="selectpicker" data-live-search="true"></select>  
											 
										</div>
									</div>
									<div class="form-group">
										<label for="name" class="col-sm-2 control-label">任课教师</label>
										<div class="col-sm-10">
											
											 <select required name="teacherId" id="sele_teacher" class="selectpicker" data-live-search="true"></select>  
											 
										</div>
									</div>
									
									<button type="submit" class="btn btn-success" value="Submit">提交</button>
									<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
								</form>
								
							</div>
						</div><!-- /.modal-content -->
					</div><!-- /.modal -->
				</div>
				
				
				<div class="col-sm-12" style="margin-bottom:20px;">
					
				</div>
				
				
				
				<div>
					<table class="table table-striped" id="courseList"></table>	
				</div>
				
			</div>
		</div>
		

	</div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-1.12.4.js"></script>
    <script src="js/jquery-form.js" type="text/javascript"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
    <script src="js/bootstrap-select.min.js"></script>
	<script src="js/bootstrap-table.js"></script>
	<script src="js/bootstrap-table-zh-CN.js"></script>
	
	<script src="js/CourseController.js"></script>

  </body>
</html>